how does a manometer work